Real-time AI pricing.
One API.
Free REST API for real-time pricing across text, image, video, avatar, TTS, and STT AI providers. Open source. Self-hostable.
npm install pricetokenpip install pricetoken| Provider | Model | Input/MTok ↑ | Output/MTok | Context | Freshness | Launched |
|---|---|---|---|---|---|---|
| openai | GPT-5 Nano | $0.050 | $0.400 | 400K | 7h ago | Aug 2025 |
| Gemini 2.5 Flash-Lite | $0.100 | $0.400 | 1049K | 7h ago | Jul 2025 | |
| openai | GPT-4.1 Nano | $0.200 | $0.800 | 1000K | 7h ago | Apr 2025 |
| xai | Grok 4.1 Fast | $0.200 | $0.500 | 2000K | 7h ago | Mar 2026 |
| ai21 | Jamba Mini | $0.200 | $0.400 | 256K | 7h ago | Jun 2025 |
| qwen | QwQ Plus | $0.222 | $0.556 | 131K | 7h ago | Mar 2025 |
| Gemini 3.1 Flash-Lite Previewpreview | $0.250 | $1.50 | 1049K | 7h ago | Mar 2026 | |
| openai | GPT-4o Mini | $0.250 | $1.00 | 128K | 7h ago | Jul 2024 |
| openai | GPT-5 Mini | $0.250 | $2.00 | 400K | 7h ago | Aug 2025 |
| deepseek | DeepSeek-V3.2 (Non-thinking Mode) | $0.280 | $0.420 | 131K | 7h ago | Dec 2025 |
| deepseek | DeepSeek-V3.2 (Thinking Mode) | $0.280 | $0.420 | 131K | 7h ago | Dec 2025 |
| Gemini 2.5 Flash | $0.300 | $2.50 | 1000K | 7h ago | Jun 2025 | |
| xai | Grok 3 Mini | $0.300 | $0.500 | 131K | 7h ago | Apr 2025 |
| qwen | Qwen3-Max | $0.347 | $1.39 | 262K | 7h ago | Sep 2025 |
| Gemini 3 Flash Previewpreview | $0.500 | $3.00 | 1049K | 7h ago | Dec 2025 | |
| openai | GPT-4.1 Mini | $0.700 | $2.80 | 1000K | 7h ago | Apr 2025 |
| anthropic | Claude Haiku 4.5 | $1.00 | $5.00 | 200K | 7h ago | Oct 2025 |
| openai | o3 Mini | $1.10 | $4.40 | 200K | 10h ago | Jan 2025 |
| Gemini 2.5 Pro | $1.25 | $10.00 | 1049K | 7h ago | Jun 2025 | |
| openai | GPT-5 | $1.25 | $10.00 | 400K | 7h ago | Aug 2025 |
| openai | GPT-5.1 | $1.25 | $10.00 | 400K | 7h ago | Nov 2025 |
| openai | GPT-5.2 | $1.75 | $14.00 | 400K | 7h ago | Dec 2025 |
| openai | GPT-5.3 Chat Latest | $1.75 | $14.00 | 128K | 10h ago | Mar 2026 |
| Gemini 3.1 Pro Previewpreview | $2.00 | $12.00 | 1049K | 7h ago | Feb 2026 | |
| ai21 | Jamba Large | $2.00 | $8.00 | 256K | 7h ago | Aug 2025 |
| openai | O4 Mini | $2.00 | $8.00 | 200K | 7h ago | Apr 2025 |
| openai | GPT-5.4 | $2.50 | $15.00 | 1050K | 7h ago | Mar 2026 |
| anthropic | Claude Sonnet 4.6 | $3.00 | $15.00 | 200K | 7h ago | Feb 2026 |
| xai | Grok 3 | $3.00 | $15.00 | 131K | 7h ago | Apr 2025 |
| xai | Grok 4 | $3.00 | $15.00 | 256K | 7h ago | Jul 2025 |
| openai | GPT-4.1 | $3.50 | $14.00 | 1000K | 7h ago | Apr 2025 |
| openai | GPT-5.3 Codex | $3.50 | $28.00 | 400K | 7h ago | Feb 2026 |
| openai | O3 | $3.50 | $14.00 | 200K | 7h ago | Apr 2025 |
| openai | GPT-4o | $4.25 | $17.00 | 128K | 7h ago | May 2024 |
| anthropic | Claude Opus 4.6 | $5.00 | $25.00 | 200K | 7h ago | Feb 2026 |
| openai | o3 Pro | $20.00 | $80.00 | 200K | 10h ago | Jun 2025 |
| openai | GPT-5.4 Pro | $30.00 | $180.00 | 1050K | 7h ago | Mar 2026 |
How We Get Our Data
Puppeteer fetches each provider's official pricing page daily, extracting the raw text content.
An AI agent parses the raw text into structured pricing data — model IDs, prices, and context windows.
Three independent AI agents from different providers cross-check every data point. A model is only accepted when at least two agents agree and the price is consistent with historical data.
Verified models are saved as timestamped snapshots in PostgreSQL, so you can track price changes over time.
Each model gets a Bayesian confidence score (0–100). We start with a prior based on data source (verified scrape = 0.90, manual seed = 0.55, stale carry-forward = 0.25), then update with evidence: agent consensus, data age, and price stability. The result is a principled, interpretable score that decays naturally as data ages.
While our multi-agent verification catches the vast majority of errors, prices may occasionally be inaccurate. Always verify against the official pricing page before making purchasing decisions.
Missing a provider or found a wrong price? Open an issue or submit a PR.
3D / World Models
We're tracking the emerging world model space. Once providers converge on a standard pricing unit, we'll add full comparisons.
Free REST API
30 requests/hour free. No signup required. JSON responses with CORS enabled.
npm & PyPI Packages
Typed clients for JS/TS and Python. Offline cost calculator and static pricing data. Zero runtime deps.
Open Source
MIT licensed. Self-host on your own infrastructure. Fork and extend.
Trusted by